summaryrefslogtreecommitdiffhomepage
path: root/packages/enterprise/src/routes/api/[...path].ts
diff options
context:
space:
mode:
authorShoubhit Dash <[email protected]>2026-03-06 18:19:15 +0530
committerGitHub <[email protected]>2026-03-06 06:49:15 -0600
commit1d9dcd2a27736b83d20abc0111141fdd6bffde7e (patch)
tree70d40994ed50d7f068c1415a67d9d8782d78d9af /packages/enterprise/src/routes/api/[...path].ts
parenteeeb21ff8638eddd960afbd8f522c87d850d6183 (diff)
downloadopencode-1d9dcd2a27736b83d20abc0111141fdd6bffde7e.tar.gz
opencode-1d9dcd2a27736b83d20abc0111141fdd6bffde7e.zip
share: speed up share loads (#16165)
Diffstat (limited to 'packages/enterprise/src/routes/api/[...path].ts')
-rw-r--r--packages/enterprise/src/routes/api/[...path].ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/enterprise/src/routes/api/[...path].ts b/packages/enterprise/src/routes/api/[...path].ts
index e77c00de9..f97788bd0 100644
--- a/packages/enterprise/src/routes/api/[...path].ts
+++ b/packages/enterprise/src/routes/api/[...path].ts
@@ -108,6 +108,7 @@ app
validator("param", z.object({ shareID: z.string() })),
async (c) => {
const { shareID } = c.req.valid("param")
+ c.header("Cache-Control", "public, max-age=30, s-maxage=300, stale-while-revalidate=86400")
return c.json(await Share.data(shareID))
},
)